package com.example.springboot.demo4;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

@Controller
public class staticHtml {
    // 返回静态页面
    @RequestMapping("/statichtml")
    public Object method_10(){
        //执行业务逻辑
        //返回view->statichtml.html
        return "/statichtml.html";
    }
    @RequestMapping("/aaa")
    public Object method_11(){
        //执行业务逻辑
        //返回view->statichtml.html
        return "/aaa.html";
    }

    @RequestMapping("/index")
    public Object login(){
        //执行业务逻辑
        //返回view->index.html
        return "/index.html";
    }






}
